package com.yanq.liancar.adapter;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/11/2  14:12
 *  @描述       ${TODO}
 */


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.SelectStaffBean;

import java.util.List;

public class StaffListAdapter extends BaseQuickAdapter<SelectStaffBean.DataBean,BaseViewHolder> {
    public StaffListAdapter(int layoutResId, @Nullable List<SelectStaffBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SelectStaffBean.DataBean item) {
            helper.setText(R.id.tv_name,item.getUsername())
                    .setText(R.id.tv_phoneNum,item.getTel());
    }
}
